from pydantic import BaseModel, Field
from typing import List, Dict, Optional

class MultiFileForm(BaseModel):
    content: bytes      = Field(description='文件内容')
    filename: str       = Field(description='文件名称')
    form_name: str      = Field(description='表单参数名称')
    
    
class MultiFileBuildForm(BaseModel):
    multi_files: List[MultiFileForm]
    data_to_form: Optional[List[Dict]] = Field(None, description='额外表单数据')